<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumnListorderToVchansTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('vchans', function (Blueprint $table) {
            $table->integer('listorder')->default(0);
        });
        Schema::table('vcareacats', function (Blueprint $table) {
            $table->integer('listorder')->default(0);
        });        
        Schema::table('vccattags', function (Blueprint $table) {
            $table->integer('listorder')->default(0);
        });        
        Schema::table('vccats', function (Blueprint $table) {
            $table->integer('listorder')->default(0);
        });       
        Schema::table('vepgs', function (Blueprint $table) {
            $table->integer('listorder')->default(0);
        });        
        Schema::table('vcstreams', function (Blueprint $table) {
            $table->integer('listorder')->default(0);
        });        
        Schema::table('vcposters', function (Blueprint $table) {
            $table->integer('listorder')->default(0);
        });
        Schema::table('epg_formats', function (Blueprint $table) {
            $table->integer('listorder')->default(0);
        }); 
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('vchans', function (Blueprint $table) {
            //
        });
    }
}
